﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="TudienOnline.Account.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Log In
    </h2>
    <p>
        Hãy nhập tài khoản truy nhập và mật khẩu.
        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false">Đăng ký</asp:HyperLink> &nbsp;nếu bạn chưa có tài khoản.
    </p>
    <div id="dvDangnhap">
        <table>
            <tr>
                <td colspan="3">
                    <asp:Label ID="lblThongbao" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="3">Đăng nhập hệ thống</td>
            </tr>
            
            <tr>
                <td>Username:</td>
                <td>
                    <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>    
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="rfvUsername" runat="server" 
                        ErrorMessage="Hãy nhập Username" ControlToValidate="txtUsername" 
                        ValidationGroup="vgDangnhap"></asp:RequiredFieldValidator>
                </td>
                
            </tr>
            <tr>
                
                <td>Password:</td>
                <td>
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>    
                </td>

                <td>
                    <asp:RequiredFieldValidator ID="rfvPassword" runat="server" 
                        ErrorMessage="Hãy nhập mật khẩu" ControlToValidate="txtPassword" 
                        ValidationGroup="vgDangnhap"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                
                <td></td>
                <td>
                    <asp:Button ID="btnDangnhap" runat="server" Text="Đăng nhập" 
                        onclick="btnDangnhap_Click" ValidationGroup="vgDangnhap" /> &nbsp; 
                    <asp:Button ID="btnHuy" runat="server" Text="Hủy" onclick="btnHuy_Click" />    
                </td>
                <td></td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;</td>
            </tr>
        </table>
    </div>
</asp:Content>
